import { ActionContext } from 'vuex'
import { IRootState } from '../../rootState'
import { state, getters, MenuState } from './entity'
import { constantRoutes } from '@/router';
const mutations = {
    // 设置版本号
    SET_MENULIST: (state: MenuState, menuList: string) => {
        state.menuList = menuList;
    },
}

const actions = {
    SetMenuList({ commit }: ActionContext<MenuState, IRootState>, roles: string) {
        const menuList: Array<any> = []
        commit('SET_MENULIST', menuList);
    }
}

export default {
    namespace: 'app',
    state,
    mutations,
    actions,
    getters
};